import request from '@/utils/request'

// 新增项目
export function addProject(data) {
	return request({
		url: '/admin/ctction/add',
		method: 'post',
		data: data
	})
}
// 修改项目
export function editProject(data) {
	return request({
		url: '/admin/ctction/modify',
		method: 'post',
		data: data
	})
}

// 删除项目
export function deleteProject(data) {
	return request({
		url: '/admin/ctction/del',
		method: 'post',
		data: data
	})
}

// 查询项目列表
export function getProjectList(data) {
	return request({
		url: '/admin/ctction/list',
		method: 'post',
		data: data
	})
}

// 查询项目详情
export function getProjectDetail(data) {
	return request({
		url: '/admin/ctction/ctcid',
		method: 'post',
		data: data
	})
}

// 流程下拉 /flow/list
export function getFlowSelect(data) {
	return request({
		url: '/admin/flow/list',
		method: 'post',
		data: data
	})
}

// 项目流程详情 /decflow/lists
export function proFlowDetail(data) {
	return request({
		url: '/admin/decflow/lists',
		method: 'post',
		data: data
	})
}

// 完善项目流程流程 /ctcflow/add
export function proFlowAdd(data) {
	return request({
		url: '/admin/ctcflow/add',
		method: 'post',
		data: data
	})
}